package com.lcq.demo.entity.dynamodb;

import lombok.Setter;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbAttribute;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbBean;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbPartitionKey;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbSortKey;

/**
 * dynamodb Music类
 * @author 240701005
 */

@Setter
@DynamoDbBean
public class Music {

    private String artist;

    private String songTitle;

    private String albumTitle;

    private Integer awards;

    private Integer like;

    @DynamoDbPartitionKey
    @DynamoDbAttribute(value = "Artist")
    public String getArtist() {
        return artist;
    }

    @DynamoDbSortKey
    @DynamoDbAttribute(value = "SongTitle")
    public String getSongTitle() {
        return songTitle;
    }

    @DynamoDbAttribute("Awards")
    public Integer getAwards() {
        return awards;
    }

    @DynamoDbAttribute("AlbumTitle")
    public String getAlbumTitle() {
        return albumTitle;
    }

    @DynamoDbAttribute("like")
    public Integer getLike() {
        return like;
    }

}
